<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="/wondershare/js/jquery.js"></script> 
<script src="/wondershare/js/utils.js"></script> 
<script src="/wondershare/js/comment.js"></script> 
<link href="/wondershare/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/wondershare/styles/general.css" rel="stylesheet" type="text/css" />
<title>留言管理</title>
</head>

<body >
<h1>
<{if $product_id}>
<span class="action-span">
<a href="/wondershare/comment.php?action=add_edit&act=add&product_id=<{$product_id}>">添加新评论</a>
</span>
<{/if}>
<span class="action-span1">
<a href="/wondershare/product.php?action=productList" style="text-decoration:underline">公共产品信息管理</a>
</span>
<span id="search_id" class="action-span1"> &nbsp;&nbsp;- &nbsp;&nbsp;评论管理 </span>

</h1>

<h1>

<span class="action-span1">
&nbsp;&nbsp;<span style="font-size:13px; color:#000000; ">产品名称：</span><span style="font-size:13px; color:#FF0000"><{$product_name}></span>
</span>
<div style="clear:both"></div>
<input type="hidden" name="product_id" id="product_id" value="<{$product_id}>" />
</h1>
<table width="100%" cellspacing="1" cellpadding="2" id="list-table" class="list-div">
<tbody>
  <tr>
    <th align="center">用户名</th>
    <th align="center">国家</th>
	<th align="center">显示顺序</th>
	<th align="center">是否在网站显示</th>
    <th align="center">操作人员</th>
    <th align="center">操作时间</th>
    <th align="center">操作</th>
	<th align="center">操作</th>
  </tr>
<{foreach from=$comment_info item=comment}>
  <tr align="center"  id="tr_<{$comment.comment_id}>">

	<td width="15%" align="center"  >
	 <{$comment.user|escape}>
	</td>
	<td width="15%" align="center">
	<{$comment.country|escape}>
	</td>
	
	<td width="10%" align="center" id="td_sort_<{$comment.comment_id}>" > 
	<span   onmouseout="check_css('sort_<{$comment.comment_id}>',0);" onmouseover="check_css('sort_<{$comment.comment_id}>',1);"      
	onclick="check_info('<{$comment.comment_id}>','sort_<{$comment.comment_id}>','td_sort_<{$comment.comment_id}>','30','comment_sort');"  id="sort_<{$comment.comment_id}>" ><{$comment.sort}></span>
	
	</td>
	
	<td width="10%" align="center">
	<img   id="show_<{$comment.comment_id}>" onclick="change_image('show_<{$comment.comment_id}>',<{$comment.comment_id}>,'comment_show')" <{if $comment.is_show  == 1}> src="/wondershare/images/yes.gif" <{else}> 
	src="/wondershare/images/no.gif" <{/if}> />
	</td>
	<td width="10%" align="center">
	<{$comment.user|escape}>
	</td>
 	<td width="10%" align="center">
	<{$comment.addtime}>
	</td>   
	<td width="5%" align="center">

	<a href="/wondershare/comment.php?action=add_edit&act=edit&comment_id=<{$comment.comment_id}>&product_id=<{$product_id}>" > 编辑 </a>
    </td>
	<td width="5%" align="center">
     <a href="#" onclick="{if(confirm('确定要删除记录吗?')){delete_comment(<{$comment.comment_id}>,'in_delete','comment');}return false;}" >删除</a> 

    </td>
  </tr>
 <{/foreach}>

  <tr>
	    <td></td>
		<td width="20%" align="center"> <{$page_url}> &nbsp;&nbsp;&nbsp; 共有 <span id="total"><{$total}> </span>条记录</td>
	</tr>
  </tbody>
</table>
</body>
</html>